/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package towerdefence.model;

import net.phys2d.raw.Body;
import net.phys2d.raw.shapes.Box;

/**
 *
 * @author Gussoh
 */
public class Builder extends Destructible {
    
    protected Player player;
    protected double constructionAreaWidth = 100; 
    
    public Builder(Player player) {
        super(new Box(64, 45), 80);
        this.player = player;
        player.addBuilder(this);
        setRotatable(false);
    }


    public Player getPlayer() {
        return player;
    }


    public double getConstructionAreaWidth() {
        return constructionAreaWidth;
    }

    
    
    
    @Override
    public double getStrength() {
        return 100000;
    }

    @Override
    public void destroyedBy(Body other, double forceSquared) {
        player.builderDied(this);
    }

}
